package com.xuwang.service;

import com.xuwang.Util.TableResult;
import com.xuwang.pojo.Comment;
import com.xuwang.pojo.Restaurant;
import com.xuwang.pojo.RestaurantFood;
import com.xuwang.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (User)表服务接口类
 *
 * @author smallseven
 * @since 2021-08-31 15:29:51
 * @version 1.0
 */
@Service
public interface RestaurantService {

    TableResult<List> showIndex(String token);

    TableResult<List> showFood();

    TableResult<List> showRank();


    TableResult<String> insertFood(RestaurantFood restaurantFood,String username);

    TableResult<List> showMyInfo(String token);

    TableResult<RestaurantFood> showOneFood(Integer id);

    TableResult<String> insertComment(Comment comment,String username);

    TableResult<String> uploadFoodInfo(Integer id, String src);

    TableResult<String> uploadFoodOtherInfo(RestaurantFood restaurantFood);

    TableResult<String> uploadRestaurantImgInfo(Integer id, String src);

    TableResult<String> uploadRestaurantOtherInfo(Restaurant restaurant);
}
